﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Windows.Controls.Ribbon;
using QLab.Controllers;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using AvalonDock;

namespace QLab
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	[Export(typeof(MainWindow))]
	[PartCreationPolicy(CreationPolicy.Shared)]
	public partial class MainWindow : RibbonWindow
	{
		[ImportingConstructor]
		public MainWindow(TabController TabController)
		{
			InitializeComponent();

			TabController.DocumentPane = this.tabContainer;
		}

		[Import]
		MainWindowController Controller
		{
			get { return DataContext as MainWindowController; }
			set
			{
				DataContext = value;
			}
		}
	}
}
